<?php
include_once("common.php");

$link = isset($_GET["link"]) && !empty($_GET["link"]) ? base64_decode(trim($_GET["link"])) : "";

if(!$link) {
	header("location:/");
	exit;
}

$tpl->assign("title", $lang["download"]);
$tpl->assign("link", $link);
$tpl->assign("content", $tpl->fetch("download.html"));
$tpl->assign(array(
"seo_title"=>$config["seo_index_title"],
"seo_keywords"=>$config["seo_index_keywords"],
"seo_description"=>$config["seo_index_description"],
));

$tpl->display("layout.html");
?>